import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import customModeler from '../components/VueBpmn/custom-modeler.vue'
import customRenderer from '../components/VueBpmn/custom-renderer.vue'
import customContextPad from '../components/VueBpmn/custom-contextPad'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/a', // 使用自定义的per
    name: 'customModeler',
    component: customModeler
  },
  {
    path: '/b', // 在默认的Renderer基础上修改
    name: 'customRenderer',
    component: customRenderer
  },
  {
    path: '/c', // 在默认的Renderer基础上修改
    name: 'customContextPad',
    component: customContextPad
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router